<div id="network-supply-orderAnalysis-bar2" style="height: 100%">

</div>

<script type="text/javascript">
    function loadbar2(d,color) {
        var myChart = echarts.init(document.getElementById('network-supply-orderAnalysis-bar2'), color);
        var option = {
            title: {
                text: '各一级配送中心库存容量', show: true
            },
            tooltip: {
                trigger: 'axis',
                axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                    type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            toolbox: {

            },
            legend: {
                data:['库存容量','人员成本']
            },
            grid: {
                left: '3%',
                right: '8%',
                bottom: '15%',
                top:'12%',
                containLabel: true
            },
            xAxis: [
                {
                    type: 'category',
                    data: d.data.arr0,
                    axisLabel:{
                        show:true,
                        interval:0,
                        rotate:45,//倾斜度 -90 至 90 默认为0
                        textStyle:{
                            color:"#595959"
                        }
                    },
                    axisLine: {
                        show: false
                    },
                    axisTick: {
                        show: false
                    },
                }
            ],
            yAxis: [
                {
                    type: 'value',
                    axisLine: {
                        show: false
                    },
                    axisTick: {
                        show: false
                    },
                    axisLabel: {
                        formatter: function(value){
                            var var1=value*1;
                            return var1;
                        },
                        textStyle:{
                            color:"#595959"
                        }
                    },
                    splitLine:{
                        show:true
                    },
                    splitArea: {
                        show:true,
                        areaStyle: {
                            color: ['rgba(0,0,0,0)', 'rgba(0,0,0,0)']
                        }
                    },

                }
            ],
            color:['#0fa99d','#4472c4','#d9d9d9','#787473','#c9eee7','#e7a14c',
                '#4472c4','#40C2F0','#9EC678','#BDD7EE','#A5A5A5',
                '#8497B0','#EBEBEB','#015E7F','#415168'],
            series: [
                {
                    name: '库存容量',
                    type: 'line',
                    maxWidth:20,
                    data: d.data.arr2,

                },
                {
                    name: '人员成本',
                    type: 'line',
                    maxWidth:20,
                    data: d.data.arr3,

                }
            ]
        };
        myChart.setOption(option);

    }

</script>